package com.snopy.controller;

import com.snopy.service.MiddleItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author snopy
 * @version 1.0.0
 * @classname HelloController
 * @description
 * @email 77912204@qq.com
 * @date 2022/03/13 20:09
 */
@RestController
public class HelloController {
    @Autowired
    private MiddleItemService middleItemService;

    @GetMapping("/fallback")
    public String fallback(){
        return middleItemService.errorTest();
    }


}
